﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using BBMS.FrontEnd.Constant;

namespace BBMS.DLL.Base
{
    public class SystemHelper
    {
        public static bool IsLogined = false;
        public static void DoLogin() { }
        public static void DoLogout() { }

        public static void DialogInfo(string msg)
        {
            MessageBox.Show(msg, DialogMessage.CAPTION_INFOMATION, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static void DialogExclamation(string msg)
        {
            MessageBox.Show(msg, DialogMessage.CAPTION_EXCLAMATION, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }

        public static DialogResult DialogQuestion(string msg)
        {
            return MessageBox.Show(msg, DialogMessage.CAPTION_QUESTION, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
    }
}
